﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PatternFactoryAbs
{
    class Program
    {
        static void Main(string[] args)
        {

            Factory1 factory1 = new Factory1();
            IMobaiProduct mobaiProduct = factory1.imobaiProduct();
            ITeslaProduct teslaProduct = factory1.iteslaProduct();
            mobaiProduct.Drive();
            mobaiProduct.GetName();



            Factory2 factory2 = new Factory2();

            Console.ReadKey();

        }
    }
}
